import 'package:carousel_slider/carousel_slider.dart';
import 'package:flutter/material.dart';

class HomeSwipe extends StatelessWidget {
  HomeSwipe({super.key, required this.swipeList});

  List swipeList = [];

  @override
  Widget build(BuildContext context) {
    return CarouselSlider(
        items: swipeList.map((item) {
          return Image.network(item['imgUrl']);
        }).toList(),
        options: CarouselOptions(
            viewportFraction: 1,
            aspectRatio: 375 / 185,
            autoPlay: true,
            autoPlayInterval: const Duration(seconds: 2)));
  }
}
